package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 拼多多商品sku列对象 tl_pdd_goods_sku
 * 
 * @author lhs
 * @date 2023-11-08
 */
public class TlPddGoodsSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodId;

    /** sku是否在架上，0-下架中，1-架上 */
    @Excel(name = "sku是否在架上，0-下架中，1-架上")
    @JsonProperty(value = "is_sku_onsale")
    private Long isSkuOnsale;

    /** 商家外部编码 */
    @Excel(name = "商家外部编码")
    @JsonProperty(value = "outer_goods_id")
    private String outerGoodsId;

    /** 商家外部编码 */
    @Excel(name = "商家外部编码")
    @JsonProperty(value = "outer_id")
    private String outerId;

    /** sku预扣库存 */
    @Excel(name = "sku预扣库存")
    @JsonProperty(value = "reserve_quantity")
    private Long reserveQuantity;

    /** sku编码 */
    @Excel(name = "sku编码")
    @JsonProperty(value = "sku_id")
    private Long skuId;

    /** sku库存 */
    @Excel(name = "sku库存")
    @JsonProperty(value = "sku_quantity")
    private Long skuQuantity;

    /** 规格名称 */
    @Excel(name = "规格名称")
    @JsonProperty(value = "spec")
    private String spec;

    private Long userId;

    private Long ownerId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }
    public void setIsSkuOnsale(Long isSkuOnsale) 
    {
        this.isSkuOnsale = isSkuOnsale;
    }

    public Long getIsSkuOnsale() 
    {
        return isSkuOnsale;
    }
    public void setOuterGoodsId(String outerGoodsId) 
    {
        this.outerGoodsId = outerGoodsId;
    }

    public String getOuterGoodsId() 
    {
        return outerGoodsId;
    }
    public void setOuterId(String outerId) 
    {
        this.outerId = outerId;
    }

    public String getOuterId() 
    {
        return outerId;
    }
    public void setReserveQuantity(Long reserveQuantity) 
    {
        this.reserveQuantity = reserveQuantity;
    }

    public Long getReserveQuantity() 
    {
        return reserveQuantity;
    }
    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }
    public void setSkuQuantity(Long skuQuantity) 
    {
        this.skuQuantity = skuQuantity;
    }

    public Long getSkuQuantity() 
    {
        return skuQuantity;
    }
    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodId", getGoodId())
            .append("isSkuOnsale", getIsSkuOnsale())
            .append("outerGoodsId", getOuterGoodsId())
            .append("outerId", getOuterId())
            .append("reserveQuantity", getReserveQuantity())
            .append("skuId", getSkuId())
            .append("skuQuantity", getSkuQuantity())
            .append("spec", getSpec())
            .toString();
    }
}
